package com.example.studentmanagement2.repository.Repository;

import com.example.studentmanagement2.model.User;
import com.example.studentmanagement2.model.User;

import java.util.List;
import java.util.Optional;

public interface UserRepository {
    List<User> findAll();
    Optional<User> findById(String id);
    User save(User user);

    void update(User user, String originalId);

    void deleteById(String id);
    boolean existsById(String id);

    List<User> search(String keyword);

}
